package cn.zz.veggie.web.types.dto.mgmt;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhongq
 * @since 2024/4/6
 */
@Getter
@Setter
public class MgmtProductSaveDto {
	@Positive
	private Integer id;
	@NotBlank
	private String name;
	private String image;
	private String spec;
	private String unit;
	@Positive
	@NotNull
	private Integer price;
	@Min(0)
	@Max(1)
	private Integer status;
}